package com.framework.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.sys.SysDeptJumpUrlDao;
import com.framework.entity.sys.SysDeptJumpUrl;
import com.framework.service.SysDeptJumpUrlService;
import org.springframework.stereotype.Service;

/**
 * 跳转地址 业务层
 * @author wq
 */
@Service("sysDeptJumpUrlService")

public class SysDeptJumpUrlServiceImpl extends ServiceImpl<SysDeptJumpUrlDao,SysDeptJumpUrl> implements SysDeptJumpUrlService {


    @Override
    public SysDeptJumpUrl queryByDeptIdAndType(Long deptId,int type) {
        SysDeptJumpUrl temp=new SysDeptJumpUrl();
        temp.setDeptId(deptId);
        temp.setType(type);
        return baseMapper.selectOne(temp);
    }
}
